import http from "@/utils/http";

// 分页查询仓库列表
export function setWare_tabelList(params) {
  return http.post("/sys-store-house/select/page/list", params);
}
//  添加仓库
export function setWare_addWareHouse(params) {
  return http.post("/sys-store-house/save/info", params);
}
//  修改仓库信息
export function setWare_editWareHouse(sysStoreHouseId, params) {
  return http.post("/sys-store-house/edit/info/" + sysStoreHouseId, params);
}
//  查询单条仓库信息
export function setWare_searchWareHouse(sysStoreHouseId) {
  return http.post("/sys-store-house/select/One/" + sysStoreHouseId);
}
//  改变状态
export function setWare_editType(sysStoreHouseId, is) {
  return http.post(
    "/sys-store-house/disable/info/" + sysStoreHouseId + "/" + is
  );
}
// 分页查询币种列表
export function para_tabelList(params) {
  return http.post("/sys-currency/select/Page/currency", params);
}
// 分页查询物流平台
export function con_searchPlat(sysStoreHouseId, params) {
  return http.post(
    "/sys-store-house-logistics/select/page/all/" + sysStoreHouseId,
    params
  );
}
// 查询未添加的物流商
export function con_searchNotProList(sysStoreHouseId, sysLogisticsId) {
  return http.post(
    "/sys-store-house-logistics-service-item/select/NotAll/" +
      sysStoreHouseId +
      "/" +
      sysLogisticsId
  );
}
// 查询已添加的物流商
export function con_searchYesProList(sysStoreHouseId, sysLogisticsId) {
  return http.post(
    "/sys-store-house-logistics-service-item/select/all/" +
      sysStoreHouseId +
      "/" +
      sysLogisticsId
  );
}
// 确认添加物流商
export function con_addProList(
  sysStoreHouseId,
  sysLogisticsId,
  LogisticsServiceItemId
) {
  return http.post(
    "/sys-store-house-logistics-service-item/add/" +
      sysStoreHouseId +
      "/" +
      sysLogisticsId +
      "/" +
      LogisticsServiceItemId
  );
}
// 修改物流商状态
export function con_editProList(
  sysStoreHouseId,
  sysLogisticsId,
  sysStoreHouseLogisticsServiceItemId,
  params
) {
  return http.post(
    "/sys-store-house-logistics-service-item/edit/" +
      sysStoreHouseId +
      "/" +
      sysLogisticsId +
      "/" +
      sysStoreHouseLogisticsServiceItemId,
    params
  );
}
// 修改物流商服务状态
export function con_editSerProList(
  sysStoreHouseId,
  sysLogisticsId,
  sysStoreHouseLogisticsServiceWayId,
  params
) {
  return http.post(
    "/sys-store-house-logistics-service-way/edit/" +
      sysStoreHouseId +
      "/" +
      sysLogisticsId +
      "/" +
      sysStoreHouseLogisticsServiceWayId,
    params
  );
}
// 添加物流商服务方式
export function con_addSerProWay(
  sysStoreHouseId,
  sysLogisticsId,
  sysStoreHouseLogisticsServiceWayId,
  params
) {
  return http.post(
    "/sys-store-house-logistics-service-way/add/service/way/" +
      sysStoreHouseId +
      "/" +
      sysLogisticsId +
      "/" +
      sysStoreHouseLogisticsServiceWayId,
    params
  );
}
// 物流设置添加物流平台
export function con_logiAddPlat(sysStoreHouseId, sysLogisticsId, params) {
  return http.post(
    "/sys-store-house-logistics/add/" + sysStoreHouseId + "/" + sysLogisticsId,
    params
  );
}
// 查询未添加的服务方式
export function con_searchSerList(sysStoreHouseId, serviceItemId) {
  return http.post(
    "/sys-store-house-logistics-service-way/select/not/add/" +
      sysStoreHouseId +
      "/" +
      serviceItemId
  );
}
//分页查询币种
export function logi_getCurrency(params) {
  return http.post("/sys-currency/select/Page/currency", params);
}
//分页查询收费方案下拉数据
export function getRevenPlanList(params) {
  return http.post("/sys-charging-scheme/select/page/list", params);
}
